package com.ruoyi.groovy.mapper;

import com.ruoyi.groovy.domain.GroovyScriptHistoryModel;
import com.ruoyi.groovy.domain.GroovyScriptModel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 业务聚合
 *
 * @version [V2.0]
 * @package com.ruoyi.groovy.dao;
 * @description:[用一句话描述该文件做什么]
 * @author: [zhuben]
 * @date: [2024-12-16 14:43]
 * @copyright: 2024 echovin.com
 */
public interface GroovyScriptDao {
    void save(@Param("entity") GroovyScriptModel groovyScriptModel);

    void update(@Param("entity") GroovyScriptModel groovyScriptModel);

    GroovyScriptModel getOne(@Param("id") String id);

    List<GroovyScriptModel> selectAll();

    void saveHistory(@Param("entity") GroovyScriptHistoryModel groovyScriptHistoryModel);
}
